Skip to content

pm: relay pr_dequeue door and the approved large-PR jump; the landing seat watches its queued PR - #33732

Merged
objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/project-thread-7tfnah
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/project-thread-7tfnah

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #33647

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么: 中继新增出队操作 pr_dequeue(三因围栏:与基座冲突、自身改动致队列构建红、PR 正文签名尾行所记落地席以签名评论自请;先贴审计评论再出队,回读离队且仍开未合才算落地);pr_enqueue_front 对逾 3,000 行 PR 认现 head 上的授权批准,或你点名现 head 的评论承接旧批准(首行是席位签名的评论不算);landing-operations.md 写入「谁入队谁看护」;队列席章程放宽到这两扇新门。
  • 为什么改: 你的话「建议有专人来跟进队列吗?这种操作不应该等我」;本卡第二步,出队和大 PR 插队不再等你动手。
  • 风险与回滚: 出队只在中继自己的读数满足三因之一时才写,围栏不过即零写入;批准仍归你,中继只读不给。回滚即 revert。
  • 先看: scripts/pm/fleet-write/ops.mjs 的 pr_dequeue 一节与 DEQUEUE_FENCES;execute.mjs 的 dequeuePreflight 与 dequeueAction。
  • 两分钟验证: node scripts/pm/fleet-write/execute.mjs --self-test && node scripts/pm/fleet-write/validate.mjs --self-test,预期 415 例与 428 例全过。
  • 需要你做的: 给 objectstack-fleet App 开 Merge queues: write(见下文 item 5);合并本身是席位落地(Tier S,须现 head 达档复核 PASS)。

What changes

  1. pr_dequeue, a new relay row (ops.mjs, execute.mjs, validate.mjs). It sends GraphQL dequeuePullRequest(input: { id }) for one pull. The required fields are pull, expected_head_sha, cause (one of conflict, own-failure, seat-asks) and reason (at most 1,000 bytes). Before any write, the executor reads the pull, its base's merge queue (with each entry's merge-group check rollup) and, for seat-asks only, the landing seat that the pull body's signed trailer names and then the pull's comments. It then judges six fences (DEQUEUE_FENCES):

    • open: the pull is open.
    • head: the pull's head is still expected_head_sha.
    • release: the pull is not the Version Packages pull.
    • queue: the base's queue was read whole.
    • queued: the queue lists the pull.
    • cause, by the named cause:
      • conflict needs mergeable_state dirty (unknown is not judged);
      • own-failure needs the entry to read UNMERGEABLE, or its merge-group rollup to read FAILURE/ERROR (null is refused);
      • seat-asks needs the pull body's signed trailer (<!-- signed: LANE#N · ACCOUNT · SESSION -->) to name a seat, and a comment by objectstack-fleet[bot] whose signature line names that same seat and account under the dispatching session (signedByLandingSeat). A body with no trailer is refused before its comments are read. Another seat's signed comment (a review record, a triage knock, the queue seat's own jump comment) and the relay's own audit comments answer nothing. payload.session is still the sender's own word: the fence binds it to the seat the pull names, but does not prove who typed it.

    Any failed fence is refused with zero writes (exit 5). When all hold, the relay posts ONE audit comment on the pull (session, request, cause, what the relay read and the seat's reason), and sends the mutation, on the node id from the preflight's own pull read, only after that comment answers 201. It then re-reads the queue every 3 s for up to 30 s, and lands only when the pull is gone AND two reads of its own GET, one poll interval apart, both read it still open with merged false. The queue's removal and the merge arrive seconds apart in either order (platform-readings.md). A pull that merged or closed inside the window is FAILED, naming it. If the pull is still listed, the action is FAILED, UNCONFIRMED; a 200 is never trusted alone. The row mints merge-queues: write for its stroke alone (as the jump does), spends contents and issues beside it, and travels alone. Whether WHO failed is a flake is the three-fact test, which no read can run, so the seat states it in reason and the audit comment carries it. automerge_disable is unchanged.

  2. The size lift on pr_enqueue_front (ops.mjs, execute.mjs). The over-3,000-line fence now holds when an authorised approval lifts it, read only for a pull over the line (enqueueFrontSizeLift):

    • On the head. The latest review by a GOVERNED_APPROVERS account is APPROVED on the current head (the queue guard's own authorizedApprovalVerdict).
    • Carried. The optional approval_comment names a comment on this pull, by a GOVERNED_APPROVERS account, that names the current head (7 or more hex characters). It is read by its own GET, and a comment whose first non-empty line is a seat signature carries nothing: authorised accounts are agent-operated too, so a seat's knock or record that quotes the head is not the maintainer's confirmation.

    An approval on another head, by another account, or in a comment on another pull lifts nothing. The governed fence, the one-jump fence and the three jump reasons are untouched, and the relay never gives an approval.

  3. landing-operations.md. The jump's §7 line folds into its refusal line, and four lines are added:

    • the over-3,000-line lift;
    • pr_dequeue's three causes, over two lines: (c) is the seat that the PR body's signed trailer names, asking through a signed comment, and the dequeue lands only on "out of the queue, still open, unmerged", with the audit comment first;
    • 「谁入队谁看护」: on a conflict or an own-cause ejection, dequeue, fix and re-queue within one patrol; when another PR's flake ejects it, re-queue under the four branches.
  4. lanes/queue.md. The charter widens to the two doors:

    • the jump line drops its "≤3,000 lines" and gains the lift line, which takes only a maintainer comment that is not seat-signed;
    • pr_dequeue on an offline landing seat's behalf for causes (a)(b) only; for (c) the relay accepts only the seat that the body's signed trailer names;
    • the relay's own audit comment and read-back (still queued or merged ⇒ FAILED, no resend, report to the maintainer).

    The "maintainer removes it until the relay op lands" section loses its dequeue line and keeps the approval itself, governed PRs, Version Packages, queue config and the App permission.

  5. Carried for pm/skills: one checklist card per reviewed PR for its review follow-ups, p3 copy nits into area loose-ends cards, and a dedupe step for retro reviews #33718 (the seat's request, ruling record 6891082225, letter B). In landing-operations.md, the retro-review line 「发现立新卡」 becomes 「发现照立卡门入卡」, because B keeps one checklist card per reviewed PR with later reviews appended. To stay within the 120-byte cap, 「落地后才见」 became 「落地后见」. The line is now exactly 120 bytes, and no lines are added.

  6. check-skill-line-ratchet.mjs: two ceilings raised, both measured and both quoting the maintainer's words on the card.

    • landing-operations.md goes from 108 to 112 (+4), with a matching ruledRaises record on its CROSS_FILE_MOVES entry dated 2026-11-15.
    • lanes/queue.md goes from 30 to 32 (+2).

    Ruling of record for both: card pm: merge-queue stewardship without the maintainer — a relay dequeue door, the front-jump for approved large PRs, each landing seat owning its queued PRs, and a queue#1 seat for the cross-lane duties #33647 (filing gate ③), 「建议有专人来跟进队列吗?这种操作不应该等我」. Items 1–3 and the charter widening order this text, and both stay at headroom 0.

skip-changeset: .claude/** and scripts/pm/** only, published by no package.

For the maintainer (item 5, not in this diff)

  • The objectstack-fleet App's Merge queues: write grant is yours to give. This PR changes no workflow and no ruleset. Until the grant exists, a pr_dequeue stroke fails at the token mint with zero writes, the same as the jump does today.
  • Not measured: the mutation's input and its permission. Whether dequeuePullRequest needs that grant at all, and whether the input it accepts is the pull's node id, are read from GitHub's schema documentation and NOT MEASURED. So is the reading that a queue entry's headCommit { statusCheckRollup } is its merge-group commit's rollup, which is the second half of the own-failure cause. GraphQL is closed to this container, and no live stroke has run. The first live stroke measures the mutation and the grant, and a GraphQL error is a FAILED action that names the grant. The first own-failure stroke measures the rollup, because the audit comment prints the rollup it read.

Tests

  • node scripts/pm/fleet-write/execute.mjs --self-test: 415 cases across 30 batteries pass (floor 28 → 30). There are two new batteries:

    • The SIZE lift. Under the line with no read, an approval on the head lifts, an approval on an older head does not, an unauthorised approver does not, a carried comment naming the head lifts, and a comment naming another head, by another author, on another pull, or opening with a seat signature does not; the same approver's comment with a signature lower down still carries it, and no signature reader carries nothing. A failed read is refused.
    • pr_dequeue. Every fence is tested both ways, and every cause holds and fails. The audit comment is posted before the mutation. No mutation is sent when the comment fails. seat-asks refuses each of these: another seat's signed comment, the queue seat's jump comment, the landing seat's lane under another account, the relay's own earlier audit comment, and a body with no trailer (whose comments are never read). A pull read with no node id writes nothing, and no second pull read sits between the comment and the mutation. A read-back that still lists the pull is FAILED, UNCONFIRMED. A pull that merges, or closes, inside the window is FAILED naming it, including a merge that shows only on the second pull read, and a merged_at beside a false merged. A pull that leaves within the window still open and unmerged lands, including after a failed pull read. A pin holds RELAY_COMMENT_AUTHOR equal to check-handover.mjs's FLEET_BOT_LOGIN.
  • node scripts/pm/fleet-write/validate.mjs --self-test: 428 cases across 22 batteries pass (floor 21 → 22). The new pr_dequeue battery covers:

    • its closed keys and the cause enum;
    • the 1,000-byte reason bound;
    • travelling alone;
    • the merge-queues grant;
    • ALLOWED_MUTATIONS holding dequeuePullRequest.

    The table pins (alsoSpends, alone, the merge-queue rows, and pr_enqueue_front's optional approval_comment) moved with it.

  • node scripts/pm/fleet-write/dispatch.mjs --self-test: 401 cases pass.

  • node scripts/pm/check-skill-line-ratchet.mjs exits 0 with every line at most 120 bytes, and its --self-test passes 164 cases.

Acceptance notes

  • Review round 1 (record 6891728476, PASS on e40c1bd6), fixed at febb3a98:

    • S1: seat-asks is bound to the landing seat named by the body's signed trailer.
    • S2: the read-back requires the pull open and unmerged.
    • S3: a seat-signed carrying comment is refused.
    • N1: the rollup reading joins the NOT MEASURED note.
    • N2: the mutation reuses the preflight's node id.
    • N3 and N4 are accepted as they stand. The fleet-write.yml comment and the PD#14 sentence go to this PR's follow-up card.

    The skill lines change in place, with no line added. In landing-operations.md the carried line reads 「维护者非席位签名评论」, and (c) reads 「PR 正文签名尾行之席以签名评论自请。审计评论在先,回读离队且仍开未合才落地」. lanes/queue.md changes to match.

  • Review round 2 (delta record on the PR, S1–S3 and N1–N2 closed), fixed at 0bbf4a3a (head 94df19bc after merging origin/main with pm-dispatch: one checklist card per reviewed PR for its review follow-ups, p3 copy nits into area loose-ends cards, a dedupe step, and the 24h flow line #33731):

    • D1: the unmerged reading is now two pull reads, one poll interval apart. The read-back lands only if both read open with merged false. A row pins a merge that shows only on the second read; ablating the second read reds 4 rows.
    • D4 (nit) is not taken. Putting 「旧批准」 back on the landing-operations.md carry line needs 128 bytes against the 120-byte cap. The shorter spellings would either coin 「席签」, which the skills never use, or add a line.
    • D2 and D3 are accepted as they stand.
  • N2 (a SKILL.md lane-table pointer to lanes/queue.md) is not done. The pm-dispatch SKILL.md lane-table row is 340 bytes against its 341-byte width pin, and the pointer needs about 360, so it would need a ruled raise of a row pin. Reported, not raised.

  • N3 is done. The charter's "opens no PR" stays as worded on main beside the mailbox, as in lanes/eval.md.

  • Read and left alone (.github/** is out of scope):

    • .github/workflows/fleet-write.yml still calls pr_enqueue_front the ONE consumer of the validate output permission_merge_queues. pr_dequeue now consumes it too. The comment is stale and needs no functional change.
    • AGENTS.md PD#14's sentence that no seat act is measured to dequeue becomes stale once this lands, and it is left for its own card.
  • Two ratchet rows instead of the order's "one line-ratchet row". Both files the order names grew, so each needs its own measured ceiling.

  • Tier. check-governed-merges.mjs --branch reads Tier S. The only governed paths are the two .claude/** files, and scripts/pm/** is not on the register. The seat lands it after a ## Contract review PASS at CONTRACT_REVIEW_TIER on the current head. dispatch-gates --tier reads no path-derived mandate.

Verification

check-governed-merges --branch (head 94df19b)
governed-surface predicate: 2 of 6 path(s) hit the register (13 surfaces govern objectstack).
  GOVERNED — Tier S(席内达档复核落地): every governed path here lies under a Tier S surface, so the OWNING
      seat lands this PR through the queue once its thread (or its card) carries a `## Contract review` record
      for the CURRENT head — `Served-tier: CONTRACT_REVIEW_TIER`, `**VERDICT: PASS**` — and every
      check green (AGENTS.md Prime Directive #14).
      Before that record no seat flips it ready, enqueues it, or arms auto-merge; ⛔ no seat approves it either,
      and no maintainer click is waited for. One hit governs the whole PR — 「混合 diff 一条命中即整 PR 分叉」;
      one Tier H path among the hits and the whole PR would be Tier H.
      .claude/** ×2 — the agent instruction tree (skills, agents, hooks, settings)
        - .claude/skills/pm-dispatch/references/landing-operations.md
        - .claude/skills/pm-dispatch/references/lanes/queue.md
  paths not on the register: scripts/pm/check-skill-line-ratchet.mjs, scripts/pm/fleet-write/execute.mjs, scripts/pm/fleet-write/ops.mjs, scripts/pm/fleet-write/validate.mjs
  head repo: NOT MEASURED — this verdict cannot tell a fork PR from an internal one; `--pr <n>` reads it.
  size: 830 changed line(s) (+784 / -46) ≤ 3000 — under the human-merge threshold (generated files included in the count).
dispatch-gates --tier and --ran (head 94df19b)
Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s), derived here, not recalled.
Run reconciliation — 47 derived, 47 run, 0 NOT-MEASURED, 0 UNRUN.
dispatch-gates --ran: 47 derived famil(ies) accounted for — 47 run, 0 NOT-MEASURED (a DERIVED zero — all 47 recorded an exit code and none of them is 3).
Derived gates: 47 of 47 exit 0 (head 94df19b)

Every command from dispatch-gates --commands exited 0, captured before any pipe: node scripts/check-closing-keyword-parity.mjs, node scripts/check-closing-keyword-parity.mjs --self-test, node scripts/check-comment-mask-corpus.mjs, node scripts/check-declaration-mirrors.mjs, node scripts/check-declaration-mirrors.mjs --self-test, node scripts/check-self-test-wired.mjs, node scripts/check-self-test-wired.mjs --self-test, node scripts/check-self-test-workflow-commands.mjs, node scripts/check-self-test-workflow-commands.mjs --self-test, node scripts/check-whole-set-label-write.mjs, node scripts/check-whole-set-label-write.mjs --self-test, node scripts/ci/plan-test-core-shards.mjs --self-test, node scripts/pm/bare-root-worklist.mjs --self-test, node scripts/pm/check-harness-current.mjs --self-test, pnpm --filter @objectstack/lint run check:doc-formula-expressions, pnpm check:agent-test-spelling, pnpm check:bash32-floor, pnpm check:ci-filter-parity, pnpm check:cli-command-ids, pnpm check:cross-package-test-inputs, pnpm check:doc-authoring, pnpm check:driver-memory-census, pnpm check:entry-guard, pnpm check:gitlink-declared, pnpm check:nul-bytes, pnpm check:parse-guard, pnpm check:pm-close-cards, pnpm check:pm-dispatch-gates, pnpm check:pm-fleet-write-dispatch, pnpm check:pm-fleet-write-execute, pnpm check:pm-fleet-write-validate, pnpm check:pm-governed-merges, pnpm check:pm-issue-create, pnpm check:pm-issue-transfer, pnpm check:pm-label-write, pnpm check:pm-post-stamped, pnpm check:pm-record-recognisers, pnpm check:pm-skill-id-lint, pnpm check:pm-skill-ratchet, pnpm check:pm-write-pace, pnpm check:pnpm-filter-targets, pnpm check:pnpm-flag-spellings, pnpm check:ratchet-remedy-authority, pnpm check:refd-timer-probe, pnpm check:scripts-symbol-anchors, pnpm check:skill-frame-sync, pnpm check:watch-hint-literal.

Outside the derived list (os-dev.md ⑤, the edited scripts' own suites): fleet-write/execute.mjs --self-test, fleet-write/validate.mjs --self-test, fleet-write/dispatch.mjs --self-test, check-skill-line-ratchet.mjs --self-test, each exit 0.


Generated by Claude Code

pr_dequeue removes a pull from its base's merge queue, fenced to three
causes judged on the relay's own reads (conflict: mergeable_state dirty;
own-failure: the entry UNMERGEABLE or its merge-group rollup failing;
seat-asks: a relay comment signed by the dispatching session). It writes
ONE audit comment before the mutation, mints merge-queues write for its
stroke alone, and lands only when the queue read back no longer lists the
pull.

pr_enqueue_front's size fence now lifts for a pull over the human-merge
line that carries an authorised APPROVED review on its current head, or an
earlier one carried to the head by an authorised comment (approval_comment).

Claude-Session: https://claude.ai/code/session_01FEkQ5nn2c5rose69uoEzmE
Co-Authored-By: Claude <noreply@anthropic.com>
…e doors

landing-operations.md names the jump's over-3,000-line lift, pr_dequeue's
three causes with its audit comment and read-back, and the duty of the
seat that queued a PR to watch it there. Ceiling 108 to 112 under a
recorded ruled raise.

Claude-Session: https://claude.ai/code/session_01FEkQ5nn2c5rose69uoEzmE
Co-Authored-By: Claude <noreply@anthropic.com>
…size-lifted jump

The queue seat may now dequeue on an offline landing seat's behalf for
causes (a) and (b) through the relay's pr_dequeue, and jump a PR over
3,000 lines when an authorised approval sits on its head or is carried by
the maintainer's approval_comment. The interim "maintainer removes it"
line is gone. Ceiling 30 -> 32, measured.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5nn2c5rose69uoEzmE
The landing window's retro-review line said findings open a new card,
which the ruling on per-PR checklist cards (later reviews appended to
one card) now contradicts. Same line, zero lines added.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5nn2c5rose69uoEzmE
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 15, 2026
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation labels Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e40c1bd6bd0b79fe7b5b8f1497846c9c1ab5a20a
Local-runs: none
Scope: .claude/skills/pm-dispatch/references/landing-operations.md, .claude/skills/pm-dispatch/references/lanes/queue.md + scripts/pm/fleet-write/ops.mjs, scripts/pm/fleet-write/execute.mjs, scripts/pm/fleet-write/validate.mjs, scripts/pm/check-skill-line-ratchet.mjs

PR #33732, PR 2 of 2 for card #33647 (items 1 to 3 and the charter widening, as triage comment 6889317333 splits them). Read: the card body and all six comments, the PR body, the six-file list, the net diff against merge-base 48e69596, and the check-runs on the head. Code outside the diff was read only to judge it: check-governed-queue-guard.mjs (authorizedApprovalVerdict, GOVERNED_APPROVERS), check-half-states.mjs (readSignatureLine), validate.mjs (the session envelope rule), platform-readings.md line 43, AGENTS.md Prime Directive #14, .github/workflows/fleet-write.yml lines 173 to 181.

Check-runs on the head when this record was written: every concluded run is success or skipped, none failed, and TWO ARE STILL IN PROGRESS — Test Core (1/8) and Type Check · consumer gates. Lint · PM dispatch-gates (the family that runs the fleet-write self-tests and the line ratchet), Lint · scoped · tooling self-tests, Check Changeset, Check PR Size and Governed Surface Queue Guard concluded success. The gate verdicts are therefore not all in: the seat reads the last two green before it lands anything.

① Derived judgments

  • Relay op table gains pr_dequeue (required pull, expected_head_sha, cause, reason; nothing optional; travels alone). RIGHT: closed keys, a closed three-value cause enum, reason bounded at 1,000 bytes, ALLOWED_MUTATIONS gains dequeuePullRequest and nothing else.
  • Token grant: a pr_dequeue stroke mints merge-queues: write through the existing stroke-scoped path, beside the five literal grants; every other stroke still writes an empty permission_merge_queues. RIGHT, and no workflow change is needed: fleet-write.yml line 181 passes the validator's output generically.
  • pr_enqueue_front gains one optional key, approval_comment (a positive integer). Its accept set WIDENS: a pull over 3,000 lines is now accepted when enqueueFrontSizeLift lifts. RIGHT against item 2. The governed, release, draft, head and one-jump fences are untouched (the lift is OR-ed into the size fence alone).
  • mergeQueueOf adds rollup to an entry only when the query selected headCommit; the jump's own read (MERGE_QUEUE_READ_QUERY) does not select it, so the jump's reading is byte-identical. RIGHT.
  • FIELDS gains cause, reason, approval_comment; no existing row names them. RIGHT.
  • Line ratchet: landing-operations.md 108 to 112 and lanes/queue.md 30 to 32, both at headroom 0 (measured on the head: 112 and 32 lines). Judged under ③.
  • No package, schema or published surface moves.

② Semver level

skip-changeset is right: the diff is .claude/** and scripts/pm/** only, published by no package; Check Changeset concluded success on the head. Clause-②: no on the claim (6891021684) and the PR body is right: nothing here narrows or publishes a package contract.

③ Boundary flags

④ Design judgment

Fences I tried to break, and what held:

  • App lacks the grant: the mint fails with zero writes (workflow, unchanged). Grant minted but the mutation refused, or the input shape wrong: a non-200, or a 200 carrying errors, is FAILED and nothing is read back; a landing needs BOTH no errors AND a whole queue read that no longer lists the pull. The door never reports success on a 200 alone. HOLDS. The input dequeuePullRequest(input: { id }) with the pull's node id agrees with GitHub's published schema.
  • Cause (a): mergeable_state must read dirty on the relay's own GET; unknown and null are refused. HOLDS.
  • Cause (b): the entry must read UNMERGEABLE or a FAILURE/ERROR rollup on the relay's own queue read; null is refused. That it FAILED is the relay's reading; that the failure is the pull's OWN change and not a flake is the seat's word in reason, carried into the audit comment. The header says so plainly, and the card names the three-fact test as the judge. HOLDS as specified.
  • Large-PR jump on an older head: refused without approval_comment. Dismissed approval: authorizedApprovalVerdict keeps the latest decisive review per reviewer, so a DISMISSED or CHANGES_REQUESTED after the approval removes it. Non-GOVERNED_APPROVERS approval: never enters approvals. A full page of 100 reviews or an unread list lifts nothing. A push after the read is the platform's refusal (expectedHeadOid). HOLDS.
  • Carried comment on another pull, by another author, or naming another head or a prefix under 7 characters: refused; the comment is read by its own GET inside payload.repo. HOLDS, with S3.

Findings:

  • S1 (should-fix) — seat-asks does not prove "its LANDING seat asks". sessionSignedOn (execute.mjs) accepts any comment by objectstack-fleet[bot] whose first line is a signature naming payload.session. Two ways through for a seat that is not the landing seat: (1) it already has a signed relay comment on the pull — a reviewer's record, a triage knock, and notably the queue seat's own jump or ejection audit comment, which lanes/queue.md orders it to leave; (2) it posts one signed comment and then sends the dequeue. payload.session itself is self-declared (validate.mjs checks its shape only), and the relay's comment row does not bind a signature to the dispatching session. So the door enforces "some seat that has spoken on this pull", and lanes/queue.md 「(c) 只归落地席」 is held by prose alone, while landing-operations.md 「中继认其在该 PR 的签名评论」 reads as if the relay proves it. Bounded: a dequeue is recoverable and the audit comment names the session, and the jump's three reasons are prose-held the same way. Fix, either: tighten the proof to the pull's own landing identity (for example the seat, lane#N, of the signature on the pull's body or its signed trailer must equal the seat of the comment signed by payload.session), or keep the code and make both skill lines say what the relay actually reads and that (c) is the seat's declaration.
  • S2 (should-fix) — the read-back lands on "not listed" alone, with no "not merged" reading. dequeueReadBack is OK as soon as the queue no longer lists the pull, and OK outright when the base reads no queue. platform-readings.md line 43 asks for the not-in-queue reading PLUS not landed, and PD#14's own remedy is "in neither the queue nor origin/main". A pull that leaves the queue by MERGING inside the 30 s window (reachable under seat-asks, whose pull may be green at the head of the queue; not under (a) or (b)) is reported as "out of the merge queue", a landed dequeue. Fix: on the read-back, re-read the pull and land only when it is still open and merged is false; a merged pull is FAILED naming the merge.
  • S3 (should-fix) — the carried approval can be "confirmed" by an agent-operated authorised account. enqueueFrontSizeLift takes any comment whose author is in GOVERNED_APPROVERS and whose text holds a 7+ character prefix of the head. AGENTS.md PD#14 says an authorised account is agent-operated too, and this card's own header shows a seat signing as triage#1 · hotlong. A seat-signed comment posted under such a login that merely quotes the head (a knock, a record with a Head-sha: line) satisfies the fence once a seat names it as approval_comment. The card's wording is "a carried approval the maintainer confirmed". Fix: refuse a carrying comment whose first non-empty line is a seat signature (readSignatureLine is already imported), with a self-test row each way.
  • N1 (nit) — headCommit is read as the entry's merge-group commit, unmeasured and not on the NOT MEASURED list. DEQUEUE_QUEUE_READ_QUERY selects headCommit { statusCheckRollup { state } } and the header calls it "its merge-group commit's check rollup". GraphQL was closed to the dev, so this is from the schema docs like the mutation. The audit comment prints the rollup it read, so the first live own-failure stroke measures it. Follow-up: add it to the first-stroke measurement note on the card for item 5.
  • N2 (nit) — the audit comment can stand with no mutation behind it for a reason the relay already knew. dequeueAction posts the comment and only then calls graphqlVariables, a second GET for a node_id the preflight's pull answer already holds. Sending pre.pull.node_id would close the "comment stands, node id unread" path. The failure row already names the comment, so nothing is misreported.
  • N3 (nit) — the grant is named only on the literal "not accessible by integration". A FORBIDDEN-typed error worded otherwise is still FAILED with GitHub's own text, just without the Merge queues: write hint. Same shape as the jump's.
  • N4 (nit) — the skill names the causes by letter, the op takes conflict / own-failure / seat-asks. A seat composing the stroke from landing-operations.md alone has to open ops.mjs for the three words and for reason. No line budget for it; fine as a pointer the refusal text already gives.

Sentence-by-sentence agreement, skill against code: the lift line, the three causes, "audit comment first, read back not listed to land", the refusal line (draft, head moved, governed, release) and the charter's "FAILED, no resend, report to the maintainer" each match ops.mjs and execute.mjs. The two sentences that say more than the code proves are the (c) sentences under S1. Card items 1, 2 and 3 and the charter widening are delivered; automerge_disable is untouched.

No must-fix. S1, S2 and S3 each earn a delta review of their fix on the new head; this record covers e40c1bd6 only.

Implemented-by: claude/project-thread-7tfnah
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

VERDICT: PASS

Adopted by the seat 2026-11-15T08:31Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z

…ged, refuse a seat-signed carry

- seat-asks now holds only on a relay comment signed by the seat and
  account the pull body's signed trailer names, under the dispatching
  session; a body naming no seat is refused before its comments are read.
- the dequeue lands only when the queue no longer lists the pull AND the
  pull's own GET reads it open with merged false; a merge or close inside
  the window is FAILED naming it.
- a carrying approval_comment that opens with a seat signature lifts
  nothing.
- the mutation uses the node id of the preflight's own pull read, and
  the header names the unmeasured merge-group rollup reading.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5nn2c5rose69uoEzmE
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: febb3a986e6235d0d810d5052968bd01f040374f
Local-runs: none
Scope: .claude/skills/pm-dispatch/references/landing-operations.md, .claude/skills/pm-dispatch/references/lanes/queue.md + scripts/pm/fleet-write/ops.mjs, scripts/pm/fleet-write/execute.mjs, scripts/pm/fleet-write/validate.mjs, scripts/pm/check-skill-line-ratchet.mjs

DELTA review of PR #33732 (card #33647, PR 2 of 2), from e40c1bd6bd0b79fe7b5b8f1497846c9c1ab5a20a to the head above: one commit, four files (the two skill files, ops.mjs, execute.mjs; 161 insertions, 62 deletions). validate.mjs and check-skill-line-ratchet.mjs are byte-identical to the prior head. Read: the card body and its six comments, the PR body, the six-file list, the net diff against main and the delta diff, the prior at-tier record 6891728476 on e40c1bd6, and the check-runs on the head. Code outside the diff was read only to judge it: dispatch.mjs (readPrBodyTrailer, the issue_patch trailer rule), check-half-states.mjs (readSignatureLine, SEAT_SIGNATURE_LINE), check-governed-queue-guard.mjs (GOVERNED_APPROVERS), platform-readings.md lines 16 to 20 and 43, seat-post-protocol.md line 30, AGENTS.md Prime Directive #14 and the three-classes paragraph of the landing rule.

Check-runs on the head when this record was written: 48 runs, ALL COMPLETED, none pending, none failed. Success on every gate that ran, among them Lint · PM dispatch-gates (the family that runs the fleet-write self-tests and the line ratchet), Lint · scoped · tooling self-tests, Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Check PR Size, Dogfood Regression Gate. The rest are skipped by the affected-set filter; both Check Changeset runs read skipped on this head (the prior head read success), which is the skip-changeset label's path and not a red.

① Derived judgments

  • seat-asks now reads the landing seat from the pull body's signed trailer (readPrBodyTrailer on the preflight's own pull GET) and holds only on a relay comment whose first line is a signature naming that lane#N, that account and payload.session (signedByLandingSeat). A body with no trailer skips the comment walk and is refused at the cause fence. RIGHT against the first fix the prior record offered.
  • The read-back lands only when the queue no longer lists the pull AND the pull's own GET reads state open with merged false (dequeuePullAfter). Merged or closed is terminal FAILED with no re-read; a non-200 pull read is pending, re-read at the interval, and falls through to FAILED, UNCONFIRMED at the window. No path reports success on an unread pull. RIGHT.
  • enqueueFrontSizeLift takes signatureOf and refuses a carrying comment whose first non-empty line is a seat signature; a missing reader carries nothing. RIGHT.
  • The mutation is addressed by pre.pull.node_id; a pull read with no node id is refused before the audit comment. graphqlVariables is no longer called on this path and is unchanged for the jump and the transfer. RIGHT.
  • The accept set of pr_dequeue and of the carried lift NARROWS relative to e40c1bd6; nothing widens. No op key, enum, grant or validator rule moved.
  • Skill files: two lines changed in place in each file, none added. Measured on the head: landing-operations.md 112 lines, longest 120 bytes; lanes/queue.md 32 lines, longest 119 bytes. Ceilings 112 and 32 unchanged, headroom 0.

② Semver level

Unchanged from the prior record: .claude/** and scripts/pm/** only, published by no package, skip-changeset right, Clause-②: no right.

③ Boundary flags

  • The PR body's Acceptance notes name the round-1 fixes and send the stale fleet-write.yml comment and the PD#14 sentence to a follow-up card. Accepted; both stay out of this diff's reach. That card should also carry D1 below.
  • N3 and N4 of the prior record are accepted by the dev as they stand. Accepted.
  • The NOT MEASURED note now names the headCommit rollup reading, in the ops.mjs header and in the PR body.
  • No ceiling moved in the delta; no new ruling is owed.

④ Design judgment

Prior findings: S1 closed, S2 closed, S3 closed, N1 closed, N2 closed. What I tried against each fix:

  • S1. Who writes the trailer: the dev at pr_create under the owning seat's identity (this PR's own body shows it), or the seat on a later rewrite through issue_patch (seat-post-protocol.md line 30). The innocent overlap the prior record named is gone: the queue seat's jump comment, a review record, a triage knock, the landing lane#N under another account and the relay's own audit comment (which opens with no signature) are each refused, with a self-test row each. Body against comments: the trailer is read from the preflight's pull GET and the comments after it; a body edited between the two reads changes nothing, because the comment must match the seat the EARLIER read named, and the mutation goes to the node id of that same read. No ordering of the two reads lets a later edit pass. The trailer's own session is rightly not compared: a seat's session rotates (this card shows domain:skills#1 under two sessions).
  • S2. Merged inside the window, closed unmerged, pull read failing then answering, and a pull read failing until the window ends: FAILED naming the merge, FAILED naming the state, landed, and FAILED UNCONFIRMED. merged absent from the answer is pending, never a pass.
  • S3. Seat-signed comment naming the head: refused, the reading names the seat. No reader passed in: refused.

Findings on this head:

  • D1 (should-fix) — the unmerged reading is ONE pull GET taken the instant the queue stops listing the pull. platform-readings.md lines 16 and 17 record that removed_from_merge_queue and merged arrive in the same second or seconds apart in either order, and that a true ejection is "no merged after it, still open minutes later"; line 20 says origin/main is never read by the merged boolean. dequeueAction returns landed on the first open, merged false read, so a pull whose merge is recorded a few seconds after its entry disappears can still be reported "out of the merge queue and still open, unmerged". Reachable only under seat-asks on a green entry, and only if GitHub both accepts the dequeue and completes the merge, which is unmeasured. The landing seat's next act (fix and re-queue) would meet the merge at once, and nothing is written on the false reading. Fix: confirm with a second pull read one DEQUEUE_POLL_MS later before landing, or measure the gap at the first live seat-asks stroke and record it in platform-readings.md. It does not reopen S2 and can ride the follow-up card.
  • D2 (nit) — the landing-seat binding is to a DECLARED seat, by two typed texts. A relay comment's lane#N and account are what the sender typed; no door compares them with the sender. A seat that types the landing seat's lane#N and account over its own session passes signedByLandingSeat, and a seat can also rewrite another seat's PR body with its own trailer through issue_patch, which checks only that the body is signed and the target is a pull. Both are deliberate forgeries of another seat's identity or state, already forbidden (AGENTS.md "State on your PR that you did not set belongs to another actor"), both leave the bot's edit and the audit comment naming the session, and a dequeue is recoverable. The ops.mjs header says it plainly ("does not prove who typed it"). No pin is available without a seat-to-session roster read; none is asked here.
  • D3 (nit) — first line only is enough for the carried approval; the residual is acceptable. A comment under a GOVERNED_APPROVERS login with the signature lower down, or with none, still carries. Judged against the rules: seats write only as objectstack-fleet[bot] through scripts/pm/ (AGENTS.md, the write-gate paragraph), and every seat post opens with its signature on line 1 or the door refuses it, so line 1 is exactly where an honest seat post is recognisable; a post under an approver's login without it is an off-door write that no reader can tell from the maintainer's hand, and the same is true of the APPROVED review itself, which PD#14 trusts by account alone. The lift also still requires a standing, undismissed authorised APPROVED review on this pull, and PD#14 lets a Tier H approval stand "on ANY commit ... later pushes included", with the over-3,000 class landing "the way a Tier H surface does". The jump's carried reading is therefore STRICTER than the landing rule it sits beside, and the comment grants no approval PD#14 would not already honour; PD#14's ban ("no agent seat submits an approving review ... under any account") is on the review, which this door never writes. Optional hardening, cheap if wanted: refuse a comment holding a signature on ANY line. The self-test row pinning "signature lower down still carries" would flip with it.
  • D4 (nit) — the reworded carry line no longer says an earlier approval must stand. Both skill lines read 「维护者非席位签名评论点名现 head 承接」 with the object 「旧批准」 dropped for bytes. The code still refuses a comment with no authorised APPROVED review behind it and says so by name, so a seat misreading the line gets a refusal, not a jump.

Sentence-by-sentence, skill against code on the changed lines: 「(c) PR 正文签名尾行之席以签名评论自请」 and 「(c) 中继只认正文签名尾行之席」 match readPrBodyTrailer plus signedByLandingSeat; 「审计评论在先,回读离队且仍开未合才落地」 and 「仍在队或已合即 FAILED」 match dequeueAction (closed unmerged is FAILED too, which the line does not contradict); 「维护者非席位签名评论」 matches the first-line refusal. Nothing the delta touched broke: the jump's read, the five other fences of the dequeue, the audit-first order and the pacing are as on e40c1bd6, and the batteries that pin them concluded green on the head.

No must-fix. This record covers febb3a98 only.

Implemented-by: claude/project-thread-7tfnah
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

VERDICT: PASS

Adopted by the seat 2026-11-15T09:02Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z

The queue's removal and the pull's merge arrive seconds apart in either
order, so one pull read the moment the queue stops listing it can miss a
merge. The read-back now lands only when two pull reads one poll interval
apart both read it open with merged false.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5nn2c5rose69uoEzmE
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 94df19bc941ee89740dfe37f69699ddf463f6be9
Local-runs: none
Scope: .claude/skills/pm-dispatch/references/landing-operations.md, .claude/skills/pm-dispatch/references/lanes/queue.md + scripts/pm/fleet-write/ops.mjs, scripts/pm/fleet-write/execute.mjs, scripts/pm/fleet-write/validate.mjs, scripts/pm/check-skill-line-ratchet.mjs

DELTA review of PR #33732 (card #33647, PR 2 of 2), from febb3a986e6235d0d810d5052968bd01f040374f to the head above. The delta is the fix commit 0bbf4a3a (execute.mjs 24 insertions and 11 deletions, ops.mjs 4 and 2) plus a merge of origin/main at a557fa38 (PR #33731). Read: the card body and its six comments, the PR body, the six-file list, the net diff against main at the head, the delta diff, the merge's two parents, the prior at-tier records 6891728476 and 6892058186, and the check-runs on the head. Code outside the delta was read only to judge it: rest in execute.mjs (how a failed read answers), dequeuePullAfter, dequeueReadBack and enqueueFrontSizeLift in ops.mjs, platform-readings.md lines 16 to 20 and 43.

Check-runs on the head when this record was written: 48 runs, ALL COMPLETED, none pending, none failed; 26 success and 22 skipped by the affected-set filter or the skip-changeset path. Success includes Lint · PM dispatch-gates, Lint · repo & tooling gates, Lint · scoped · tooling self-tests, Lint & Repo Gates, Governed Surface Queue Guard, Check PR Size, PR-body guards, Test Core, TypeScript Type Check and Dogfood Regression Gate. The Lint · repo & tooling gates log on this head prints: fleet-write/execute self-test 415 cases across 30 batteries, validate 428 across 22, dispatch 401 across 32, check-skill-line-ratchet self-test 164 cases. Those are the numbers the PR body states.

① Derived judgments

  • The dequeue's landing now needs, after the queue stops listing the pull, TWO reads of the pull's own GET one DEQUEUE_POLL_MS (3 s) apart, both answering state open with merged false. RIGHT against D1's first offered fix. The accept set of a landed pr_dequeue NARROWS; nothing widens.
  • No op key, enum, fence, grant, validator rule or mutation moved. validate.mjs and both skill files are byte-identical to febb3a98. execute.mjs and ops.mjs differ from febb3a98 by exactly the fix commit; the merge touched neither.
  • Battery floor for the dequeue: 27 to 28, one new row. The declared name in SELF_TEST_BATTERIES and the battery(...) call carry the same edited sentence ("on two reads one interval apart"), the battery holds 28 t( rows on the head, and the total 415 is what CI printed. The number 28 is named only in execute.mjs (the ledger row and its comment); ops.mjs, validate.mjs and the skill lines name no count, so there is nothing to disagree with. The "two reads one poll apart" statement reads the same in the ops.mjs header, the execute.mjs header, the inline comment and the battery name.
  • Skill lines: landing-operations.md 112 lines, longest 120 bytes; lanes/queue.md 32 lines, longest 119 bytes. Ceilings 112 and 32, headroom 0, unchanged by the delta.

② Semver level

Unchanged from the prior records: .claude/** and scripts/pm/** only, published by no package; skip-changeset and Clause-②: no are right.

③ Boundary flags

④ Design judgment

Prior findings: S1 closed, S2 closed, S3 closed, N1 closed, N2 closed (6891728476); D1 closed, D4 declined with reason (6892058186). The delta touches none of signedByLandingSeat, readPrBodyTrailer, enqueueFrontSizeLift or the preflight, so S1 to S3 stay closed on this head, and their batteries ran green.

D1, what I tried against dequeueAction on the head:

  • Merge showing only on the second read: the first read answers ok, the relay sleeps one poll, the second read answers merged, which is terminal: FAILED naming the merge, the action-failed exit, no landing. Pinned by the new row, which also holds the clock at exactly one poll.
  • merged_at beside merged false: dequeuePullAfter tests merged === true || merged_at before anything else, so it reads as MERGED. Pinned in the same row.
  • State closed with merged false, on either read: terminal FAILED naming the state. Never pending, never landed.
  • A failed or rate-limited read on the FIRST pass (a non-200, or a fetch that throws, which rest answers as status 0): pending, the loop re-reads the queue one poll later and then needs two fresh ok reads. Pinned (the row's clock moved from one poll to two).
  • A failed or rate-limited read on the SECOND pass: after is pending, so the landing return is skipped and the loop starts over; one ok read plus one unread never lands. If the reads keep failing to the window's end the action is FAILED, UNCONFIRMED, naming the unread pull. merged absent or null is pending too. No path returns ok without two consecutive ok reads inside one pass. Correct by reading; see E2 for the pin.
  • A pull read that returns a different head: the read-back does not compare the head, and does not need to. The landed text claims a state (out of the queue, open, unmerged), which is true whatever moved the head; a push to a queued pull removes it from the queue on the platform's side anyway, and the seat's next enqueue is fenced on expected_head_sha. No false landing follows.
  • A merge or close landing after the second read and before the row is printed: not closable by any finite read, and nothing is written on the reading. See E1.
  • Window arithmetic: the confirming sleep sits inside a pass, so a pass that begins just inside the 30 s window may finish one poll past it. Harmless: it can only add a read, never drop one.

Findings on this head:

  • E1 (nit) — the confirming gap is one fixed 3 s poll against a platform gap that is recorded only as "seconds". platform-readings.md line 16 says removal and merged arrive in the same second or within seconds, order unsettled; line 17 reads a true ejection as "still open minutes later". Two reads 3 s apart catch the recorded shape, and the first read already trails the removal by up to one poll, but a merge recorded more than 3 s after the relay sees the entry gone would still read as landed. Reachable only under seat-asks on a green entry, only if the platform both accepts the dequeue and completes the merge, and the seat's next act meets the merge at once. This is the fix D1 itself offered, taken as offered; D1 is closed. Follow-up card: at the first live seat-asks stroke, record the measured gap in platform-readings.md and widen the interval only if the measurement says so.
  • E2 (nit) — no row pins a failed SECOND pull read. The battery pins a failed first read and a merged second read. A regression that treated a pending second read as a pass would stay green. The code is right as written; one row (pull reads: ok, 502, ok, ok; lands at three polls) would hold it. Follow-up card.
  • E3 (nit) — two jsdocs still describe one read. dequeueAction's own jsdoc ("the pull's own GET reads it open and unmerged") and dequeuePullAfter's ("the pull's own GET once the queue no longer lists it") were not touched; both file headers and the inline comment say twice. Not contradictory, since each describes a single reading the action now takes twice. Follow-up card, no commit owed.

Sentence by sentence, skill against code on the lines that speak of the read-back: 「审计评论在先,回读离队且仍开未合才落地」 and 「仍在队或已合即 FAILED,⛔ 不重发,报维护者」 both still hold; the second read makes the code stricter than the lines, never looser. Nothing else the delta touched broke: the jump's read, the six fences, the audit-first order, the node id from the preflight's read and the pacing are as on febb3a98.

No finding above nit grade. This record covers 94df19bc only.

Implemented-by: claude/project-thread-7tfnah
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

VERDICT: PASS

Adopted by the seat 2026-11-15T09:53Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z

@objectstack-fleet objectstack-fleet Bot mentioned this pull request Nov 15, 2026
6 of 11 tasks
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

席位核对

Verdict: ACCEPT, seat lands (Tier S) · head 94df19bc941ee89740dfe37f69699ddf463f6be9 · card #33647 (PR 2 of 2, Fixes) · at-tier contract review 6891728476 (PASS with should-fix S1, S2, S3 on e40c1bd6), delta 6892058186 (PASS with should-fix D1 on febb3a98) and delta 6892612604 (PASS on this head, nits only; CONTRACT_REVIEW_TIER, served model verified by the seat; Ruling-ref for the in-seat review: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb option A).

  • Shape: draft → main, Fixes #33647. .claude/skills/pm-dispatch/references/landing-operations.md, references/lanes/queue.md, scripts/pm/check-skill-line-ratchet.mjs, scripts/pm/fleet-write/{execute,ops,validate}.mjs. skip-changeset. Clause-②: no; Metadata-protocol: none. GOVERNED (.claude/**), Tier S.
  • Scope: the relay dequeue door (conflict / own-failure / seat-asks, the last bound to the landing seat named by the PR body's signed trailer) and the front-jump for an approved large PR carried by an authorised approval; both stay at skill-line headroom 0.
  • Should-fix closure: S1 seat-asks holds only on a relay comment signed by the landing seat; S2 read-back needs the queue to stop listing the pull AND the pull open with merged false; S3 a seat-signed comment lifts nothing; D1 two pull reads one DEQUEUE_POLL_MS apart, a merge on the second read is FAILED, merged_at beside merged false reads as merged. origin/main merged after PR pm-dispatch: one checklist card per reviewed PR for its review follow-ups, p3 copy nits into area loose-ends cards, a dedupe step, and the 24h flow line #33731 (ratchet rows carried exactly).
  • Accepted deviations: D4 (「旧批准」 does not fit the 120-byte line; the code refuses by name), D2, D3, and nits E1 to E3, N1, N2 on the one checklist card review follow-ups of PR #33732 #33768 (ruling B on pm/skills: one checklist card per reviewed PR for its review follow-ups, p3 copy nits into area loose-ends cards, and a dedupe step for retro reviews #33718).
  • Gates: 47 derived, all exit 0 (developer); self-tests execute 415, validate 428, dispatch 401, ratchet 164. Check-runs on the head: 48 total, 26 success, 22 skipped, 0 other.
  • Pre-landing check: ① same-head PASS 6892612604. ② check-runs as above. ③ K = 3 on the merge base; no commit on main since touches the PR's files; mergeable_state clean.
  • Landing: pr_ready + automerge_enable in the same relay round.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 09:57
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 7c0968a Nov 15, 2026
49 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-7tfnah branch November 15, 2026 10:23
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…-ups, p3 copy nits into area loose-ends cards, a dedupe step, and the 24h flow line (objectstack-ai#33731)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XSd2LdkGDq79ihifNMPq7ZQ)_

domain:skills#1 · os-project-manager · session_01FEkQ5nz1BoBSawC99X5UqM

Fixes objectstack-ai#33718

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 改了什么:复审的后续事项改成每个 PR 一张清单卡(标题 `review follow-ups of PR #N`,后来的 delta
或追溯复审往里追加);p3 文案和文档小问题并进该区已有的 loose ends 卡;复审立卡前先按 PR
号和文件路径查重,同一发现就追加;代码 PR 欠的 skills/ADR 文本改成每个 PR 一张卡;分诊轮次记录每 3 小时报一次 24
小时的开卡、关卡、净变、合并 PR 数、open p1 和引契约复审的新卡数。
- 为什么改:维护者 2026-11-15 选了 B(「b」,记录 6891082225):复审默认做法不变,只改后续事项变成卡的形态,减少一个
PR 拆出多张卡和重复卡。
- 风险与回滚:只动三份 pm-dispatch 参考文件和行数棘轮的两行上限;「仅 nit
即终轮」的默认、每个缺陷一张卡的配额行、队列守卫都没动。回滚即还原本 PR。
- 先看:`.claude/skills/pm-dispatch/references/filing-gate.md`
新增的三行(配额行之后);`references/triage-duties.md` 第 16 行和第 74
行;`references/contract-review.md` 第 41-42 行和第 57 行。
- 两分钟验证:`node scripts/pm/check-skill-line-ratchet.mjs`,预期全部
✓,filing-gate.md 82 行(上限 82)、triage-duties.md 104 行(上限 104)。
- 需要你做的:无,席位落地(Tier S)。

## What changes

All four items of the card's "What lands", under ruling B (record
6891082225, the maintainer's 「b」, 2026-11-15). The review default is
unchanged.

- **`references/filing-gate.md`, three lines after the quota line (one
home for items 1 to 3).**
- Item 1: review follow-ups (nits, accepted deviations, same-lane
findings outside the diff) go into one card per reviewed PR, titled
`review follow-ups of PR #N`, ticked item by item; a later review of the
same PR appends and files nothing new.
- Item 2: a p3 copy or docs nit goes into the area's `AREA loose ends`
card, and one is opened only when none exists.
- Item 3: before a review files, it searches open cards for `PR #N` and
the file path, and appends a repeat of the same finding.
- The quota line (one card per defect, objectstack-ai#25687) is untouched, and the
exception says so in place (「① 缺陷仍各立」): a real gate ① defect found
outside the diff keeps its own card and is not a tick item. The dedupe
step merges only repeats of the same finding.
- **`references/contract-review.md`, two in-place edits (0 lines).** The
nit clause now sends nits to the PR's follow-up card (「转 PR 后续卡」), which
points to the filing rule. The landed-head must-fix line says 「立卡」
instead of 「立新卡」, so a search hit on the same finding is appended rather
than filed again. One character (「才」) moved from L42 to L41 to keep both
lines within 120 bytes.
- **`references/contract-review.md` L51, carried for objectstack-ai#33604 (PR objectstack-ai#33736),
in place (0 lines):** the landing pre-check's ① now reads 「现 head 同形达档
PASS 在案,无前两级」, matching objectstack-ai#33736's queue guard, which refuses a same-head
PASS that still lists an open must-fix or should-fix. To fit 120 bytes,
「过则 Tier S 入队、Tier H 等人批」 became 「过则 S 入队、H 等人批」 (the tier letters in
the same sentence).
- **`references/triage-duties.md`.**
- L74, the 11-11 carve-out (ruling 6797014134), changed in place:
skills/ADR text owed by a code PR is now one `domain:skills` card per
PR, not one per finding.
- L16, new: the round record states the 24h flow every 3 hours (issues
created, closed, net; PRs merged; open p1; new cards citing a contract
review). The card says the triage patrol prompt already carries this. No
rule text did, and a patrol routine is deleted when its seat goes off
duty (`seat-lifecycle.md`), so the rule text is the durable home.
- **`scripts/pm/check-skill-line-ratchet.mjs`, two CEILINGS rows.** An
ordinary ruled raise under the ratchet header's rule (ruling
6184799323): the ruling of record that orders this text is
**6891082225**. Measured deltas: `filing-gate.md` **79 → 82 (+3)**,
`triage-duties.md` **103 → 104 (+1)**. Each row moves by exactly its
delta, with a comment that names the ruling. Neither file has a whole
line that restates another file, so paying by deletion would have
dropped a live rule. The dispatch order first said not to raise. The
seat then ruled raise A for both files, citing this ruling.

## Tests

No test file changes. The ratchet script's own self-test was run because
the diff edits its CEILINGS map (results under Verification).

## Acceptance notes

- **Review round 1 (at-tier PASS with S1):** S1 fixed at `afffd197`:
filing-gate.md L35-36 now states that a ① defect keeps its own card,
with no new line (「接受的偏差」 to 「接受偏差」, 「合一卡」 to 「一卡」, 「后轮复核」 to 「后轮」 paid
the bytes). N2 (point contract-review.md L42 at filing-gate.md) was not
taken: L41 and L42 both sit at 120 bytes, and the pointer would cost
about 7 bytes of rule content. N3 and N4 were accepted as they are. The
L51 carry for objectstack-ai#33604 landed at `51787fa6` and is part of the same delta
review.

- **Out of surface, carried elsewhere:**
`references/landing-operations.md` L13 (a retro review's findings 「立新卡」
to 「发现照立卡门入卡」) is in PR objectstack-ai#33732's diff (objectstack-ai#33647 PR 2). objectstack-ai#33732 also edits
`check-skill-line-ratchet.mjs` on other rows; whichever lands second
merges `origin/main`.
- **Reading chosen:** the per-PR checklist card carries what the card's
item 1 lists (nits, accepted deviations, same-lane findings outside the
diff). A must-fix on a landed head stays one card per finding, graded by
finding (contract-review.md L57), and is deduped by the same search.
That keeps item 3's 「the per-defect rule still holds for real defects」.
- **Not added:** the card mentions spec wording next to skills/ADR in
the carve-out. The 11-11 ruling covers ADR and skills text only, so L74
names those two. Adding spec would widen that ruling.
- **Execution-time carve-out untouched:** `execution-duties.md` L110 (an
implementation card's file surface excludes ADR/skills paths, 「各立
`domain:skills` 卡」) is the dispatch-time split, not a review follow-up,
and stays as is.
- **No gate or recogniser checks the follow-up filing shape:** `grep`
over `scripts/` and `.github/` for 「转后续卡」, 「立新卡」, 「折清单卡」, 「携带注记」,
`follow-ups of PR` and `loose ends` finds no hit, so no recogniser or
lint pins the old text and no gate was added.
- Serial note: objectstack-ai#33716 (contract-review.md) waits for this PR.

## Verification

On head `afffd197` (the full derived list; `51787fa6` changes only
contract-review.md L51, and its re-run subset is listed at the end of
this section) (branch `claude/project-thread-7lnz38`, merge base
`origin/main` `48e69596`), each exit code captured before any pipe:

- `node scripts/pm/check-skill-line-ratchet.mjs`: exit 0.
`filing-gate.md` 82 lines (ceiling 82), `triage-duties.md` 104 (ceiling
104), `contract-review.md` 63 (ceiling 63); no line over 120 bytes.
- `node scripts/pm/check-skill-line-ratchet.mjs --self-test`: exit 0,
「164 cases pass」.
- `node scripts/pm/dispatch-gates.mjs --tier`: **no path-derived
mandate** (the surface hits none of the 4 declared globs); 29 changed
lines, under the 3000 threshold.
- `node scripts/pm/check-governed-merges.mjs --branch HEAD`: **GOVERNED,
Tier S** (`.claude/**` x3; `scripts/pm/check-skill-line-ratchet.mjs` not
on the register). The owning seat lands it after an at-tier contract
review PASS on the current head.
- Derived gates (`node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack`, 40 families, after `pnpm --filter
"@objectstack/lint..." build` under the lock, exit 0): all 40 exit 0.
`--ran`: 「40 derived famil(ies) accounted for — 40 run, 0 NOT-MEASURED」.

<details><summary>Derived gate run (40 of 40 exit 0)</summary>

```text
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs --self-test :: exit 0
node scripts/check-self-test-wired.mjs :: exit 0
node scripts/check-self-test-wired.mjs --self-test :: exit 0
node scripts/check-self-test-workflow-commands.mjs :: exit 0
node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0
node scripts/check-whole-set-label-write.mjs :: exit 0
node scripts/check-whole-set-label-write.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0
node scripts/pm/check-harness-current.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:bash32-floor :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cli-command-ids :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:entry-guard :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:parse-guard :: exit 0
pnpm check:pm-dispatch-gates :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-half-states :: exit 0
pnpm check:pm-label-write :: exit 0
pnpm check:pm-record-recognisers :: exit 0
pnpm check:pm-skill-id-lint :: exit 0
pnpm check:pm-skill-ratchet :: exit 0
pnpm check:pnpm-filter-targets :: exit 0
pnpm check:pnpm-flag-spellings :: exit 0
pnpm check:ratchet-remedy-authority :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:scripts-symbol-anchors :: exit 0
pnpm check:skill-frame-sync :: exit 0
pnpm check:watch-hint-literal :: exit 0
```

</details>

Re-run on `51787fa6` (contract-review.md L51 only; ratchet still 63/63,
no line over 120 bytes), all exit 0:

```text
pnpm check:pm-skill-ratchet :: exit 0
node scripts/pm/check-skill-line-ratchet.mjs --self-test :: exit 0
pnpm check:pm-record-recognisers :: exit 0
pnpm check:pm-skill-id-lint :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-half-states :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:skill-frame-sync :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
```

Label: `skip-changeset` (only `.claude/**` and `scripts/pm/**` change;
neither ships).

<!-- signed: domain:skills#1 · os-project-manager ·
session_01FEkQ5nz1BoBSawC99X5UqM -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…d on a seat signature on any line (objectstack-ai#34037)

<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9N1Z1u2rEtm3MkQHMEhxcoQ)_
Part of objectstack-ai#33768
Clause-②: no
Metadata-protocol: none

## 维护者速读

- 改了什么:给中继出队(dequeue)补一条自测——出队后第二次读 PR
失败时不算确认、整对重读;两处函数注释改成"读两次";插队的"携带批准"评论只要任一行带席位签名就拒收(原来只看首行)。
- 为什么改:这是 PR objectstack-ai#33732
复审留下的三条小尾巴(E2、E3、D3),注释与文件头不一致,签名藏在第二行就能绕过"席位评论不算维护者批准"。
- 风险与回滚:只动 `scripts/pm/fleet-write/` 两个脚本,不发布;D3 只会让更多评论被拒、不会放宽;回滚 =
revert 本 PR。
- 先看:`scripts/pm/fleet-write/ops.mjs` 的
`enqueueFrontSizeLift`(逐行读签名那一行);`execute.mjs` 自测里新增的 "a SECOND pull
read that fails" 一行。
- 两分钟验证:`node scripts/pm/fleet-write/execute.mjs --self-test`,应看到 "424
cases pass across 31 batteries"。
- 需要你做的:无,席位落地。

## What changes

Three items of the objectstack-ai#33768 checklist (review follow-ups of PR objectstack-ai#33732).
The rest stay open on the card: the `fleet-write.yml` comment and the
AGENTS.md sentence (Tier H, a later governed batch), N1/E1 (measured at
the first live stroke), D2, D4 and N2 (each needs a budget or a ruling).

- **E2** (`execute.mjs` self-test). The rows near the dequeue read-back
pinned a failed FIRST pull read (`pullLate`: 502, ok) and a merge that
shows only on the second read (`mergedLate`), but no failed SECOND read.
New row: pull reads ok, 502, ok, ok. The 502 confirms nothing, so the
queue is read again at the interval and the pair starts over. It lands
at three polls (clock `3 * DEQUEUE_POLL_MS`), with 5 pull GETs and 4
GraphQL calls. The pr_dequeue battery pin goes 28 → 29, with a roster
comment.
- **E3** (jsdocs). `dequeueAction` now says the pull's own GET reads it
open and unmerged TWICE, one `pollMs` apart, and that a failed second
read starts the pair over. `dequeuePullAfter` now says it judges ONE of
the two reads and the executor lands only when both are `ok`. Both match
the file headers.
- **D3** (optional hardening, taken: it stays inside
`scripts/pm/fleet-write/**`). `enqueueFrontSizeLift` runs the passed-in
signature reader on every line of the `approval_comment`, not only the
first non-empty one. A seat signature on any line refuses the carry, and
the reading says "holds the seat signature". The row "⭐ CARRIED, the
other way: … signature line further down … still carries it" flips to "⛔
CARRIED, refused on ANY line", which also checks that the reading names
the seat. The SIZE lift battery stays at 12 cases; its name ("holding a
seat signature on any line"), the `ops.mjs` header paragraph and the
`execute.mjs` header sentence now say any line. The reader stays passed
in, so `ops.mjs` still imports no guard.

No changeset: the diff is `scripts/pm/**` only and publishes nothing
(`skip-changeset`).

## Tests

At head 1c433b2:

- `node scripts/pm/fleet-write/execute.mjs --self-test`: 424 cases pass
across 31 batteries (423 at base c3c0c30).
- Forced test edit: the D3 row "signature line further down still
carries it" is flipped to a refusal, as the card asks.

<details><summary>Ablations (both red on exactly the new pin, restored,
`git diff HEAD` empty)</summary>

Run with `node scripts/ablation-replace.mjs` (the anchor must hit,
restore is checked on disk) after the fix was committed.

- E2: the second read's `if (after.ok) return` changed to `if (after.ok
|| after.pending) return`. Result: `✗ a SECOND pull read that fails (ok,
502) … — got [0,3000,3,3], want [0,9000,5,4]`, 1 of 424 failed.
- D3: the line scan changed back to `signatureOf(c.body)` (first line
only). Result: `✗ ⛔ CARRIED, refused on ANY line … — got
[[0,1,200],false], want [[5,0,"not sent"],true]`, 1 of 424 failed.

</details>

## Acceptance notes

- Concurrency: PR objectstack-ai#33975 (self-test fixtures near L2909–2962) and PR
objectstack-ai#34022 (removes the mailbox lock rows and battery, so the battery floor
goes 31 → 30) also touch `execute.mjs`. Their hunks do not overlap
these. Whichever lands later rebases; the floor and the per-battery pins
here move independently of objectstack-ai#34022's.

## Verification

<details><summary>Derived gates (37 of 37 exit 0, at head
1c433b2)</summary>

`node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` listed 37 commands; each one exited 0:
check-closing-keyword-parity (+ self-test), check-comment-mask-corpus,
check-declaration-mirrors (+ self-test), check-self-test-wired (+
self-test), check-self-test-workflow-commands (+ self-test),
check-whole-set-label-write (+ self-test), plan-test-core-shards
self-test, bare-root-worklist self-test, and the pnpm checks
agent-test-spelling, bash32-floor, ci-filter-parity, cli-command-ids,
cross-package-test-inputs, driver-memory-census, entry-guard,
gitlink-declared, nul-bytes, parse-guard, pm-close-cards,
pm-dispatch-gates, pm-fleet-write-dispatch, pm-fleet-write-execute,
pm-fleet-write-validate, pm-issue-transfer, pm-post-stamped,
pm-record-recognisers, pm-write-pace, pnpm-filter-targets,
pnpm-flag-spellings, refd-timer-probe, scripts-symbol-anchors,
watch-hint-literal.

`--ran` reconciliation: `✓ dispatch-gates --ran: 37 derived famil(ies)
accounted for — 37 run, 0 NOT-MEASURED (a DERIVED zero — all 37 recorded
an exit code and none of them is 3).`

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01ADHkmPoZhhhS5uc7UQqwZ7

---
_Generated by [Claude
Code](https://claude.ai/code/session_01ADHkmPoZhhhS5uc7UQqwZ7)_

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/l skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

1 participant